var express =require('express');
var goodsModel=require('../models/goodsList');
var router=express.Router();

router.all('/getList',function(req,res){
    goodsModel.getList(function(data){
        res.status(200).json(data);
        console.log(data)
    })

});
router.all('/orderDelete',function(req,res){
    goodsModel.orderDelete(function(data){
        res.status(200).json(data);
        console.log(data)
    })

});



module.exports=router;